import axios from '@/libs/request/axios'
//查询凭证业务事件
export function list(query,path) {
    return axios.request({
        url: `/${path}/voucherBusinessConfiguration/list`,
        method: 'post',
        data: query
    });
}

//新增凭证业务事件
export function addVoucherBusiness(atom,path) {
    return axios.request({
        url: `/${path}/voucherBusinessConfiguration/addVoucherBusiness`,
        method: 'post',
        data: atom
    });
}
//修改凭证业务事件
export function modifyVoucherBusiness(atom,path) {
    return axios.request({
        url: `/${path}/voucherBusinessConfiguration/modifyVoucherBusiness`,
        method: 'post',
        data: atom
    });
}
//删除凭证业务事件
export function delVoucherBusiness(id,path) {
    return axios.request({
        url: `/${path}/voucherBusinessConfiguration/delVoucherBusiness/${id}`,
        method: 'delete'
    });
}

//查询凭证业务子事件
export function listBusinessChild(query,path) {
    return axios.request({
        url: `/${path}/voucherBusinessConfiguration/listBusinessChild`,
        method: 'post',
        data: query
    });
}
//查询凭证业务子事件
export function queryBusinessList(query,path) {
    return axios.request({
        url: `/${path}/voucherBusinessConfiguration/queryBusinessList`,
        method: 'post',
        data: query
    });
}
